<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateProductTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('product', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id')->default(0)->comment('用户id');
            $table->text('content')->nullable()->comment('内容');
            $table->integer('video_id')->default(0)->comment('视频id');
            $table->integer('classify_one')->default(0)->comment('分类');
            $table->integer('classify_two')->default(0)->comment('分类');
            $table->integer('classify_three')->default(0)->comment('分类');
            $table->integer('status')->default(0)->comment('状态');
            $table->timestamps();
            $table->softDeletes();

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
